<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
 
    <script src="../jquery-3.3.1.js"></script>
 

    <style>
        div.panel,p.flip {
 
            width:400px;
            margin:0;
            padding:5px;
            text-align:center;
            background:#e5eecc;
            border:solid 1px #c3c3c3;
        }

        p.flip {
            margin-top:15px;
        }
        div.panel {
            display:none;
        }

 
    </style>
</head>
<body>
    
    <script>
       
      $(document).ready(function(){
          $(".flip").click(function(){
                $(".panel").animate({height:'toggle', opacity:'toggle'});
          });
      });

 
    </script>
     



        <div>
                <h2>效果演示</h2>
                
                
                 
                
                 
                <p class="flip">点击这里，隐藏/显示面板</p>
                <!-- <button id="stop">stop</button> -->
                <div class="panel" ><p>一寸光阴一寸金，因此，我们为您提供快捷易懂的学习内容。</p>
                <p>在这里，您可以通过一种易懂的便利的模式获得您需要的任何知识。</p></div>
                </div>
</body>
</html>